<layout name="blank" />
<block name="style">
	<style>
		body {
			background: #f0f0f0;
		}
		.login-box {
			background: #fff;
			width: 760px;
			height: 575px;
			margin-top: 10%;
			margin-left: auto;
			margin-right: auto;
			border: 1px solid #ddd;
		}
		.login-box h1 {
			font-weight: normal;
			font-size: 32px;
			text-align: center;
			padding-top: 50px;
			padding-bottom: 30px;
			margin: 0;
			color: #3d3d3d !important;
		}
		.layui-form {
			width: 400px;
			margin-left: auto;
			margin-right: auto;
		}
		.input, .btn {
			height: 48px;
			margin-top: 30px;
		}
		.verify_code {
			text-align: center;
		}
		.verify_code img {
			padding-top: 10px;
		}
		#login_btn {
			margin-top: 30px;
			width: 100%;
			background: #2794eb;
			line-height: 48px;
			text-align: center;
		}
		.copright {
			position: fixed;
			right: 15px;
			bottom: 0px;
			color: #4E5465;
			text-align: right;
			padding-left: 15px;
			padding-bottom: 15px;
		}
		/* 适配多设备 */
		@media screen and (max-width: 768px) {
			body, html {
				height: 100%;
			}
			.login-box {
				width: 100%;
				height: 100%;
				margin: 0;
				padding: 0;
				border: 0;
			}
			.layui-form {
				width: 280px;
			}
		}
	</style>
</block>
<block name="content">
	<php>
		if(empty($url)){
		$url="javascript:history.go(-1)";
		}
	</php>
	<div class="login-box">
		<h1 class="text-center">{$info}</h1>
		<form method="post" id="form_login"  action="{:url('public/check_login')}" class="layui-form">
			<div class="box">
				页面自动 <a id="href" href="<?php echo($url); ?>">跳转</a> 等待时间： <b id="wait">3</b>
			</div>
			<!-- 开源版不允许删除版权链接 谢谢支持  -->
		</form>
		<div class="copright">
			版权所有：<a href="http://www.smeoa.com">小微OA</a>
		</div>
	</div>
</block>
<block name="js">
	<script type="text/javascript">
		(function() {
			var wait = document.getElementById('wait'), href = document.getElementById('href').href;
			var interval = setInterval(function() {
				var time = --wait.innerHTML;
				if (time <= 0) {
					location.href = href;
					clearInterval(interval);
				};
			}, 1000);
		})();
	</script>
</block>